﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp;

namespace Mozhi.Abp.Module.DataLinkage.Controllers
{
    [RemoteService]
    [Route("api/v1/data-linkages")]
    public class DataLinkageController : DataLinkageControllerBase
    {
        private IDataLinkageAppService _appService;

        public DataLinkageController(IDataLinkageAppService appService)
        {
            _appService = appService;
        }

        [HttpGet]
        public async Task<PagedResultDto<DataLinkageDto>> GetAsync(DataLinkageResultRequestDto filter)
        {
            return await _appService.GetListAsync(filter);
        }
    }
}
